package kaufman.id.projects;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class AnimationFrame extends JFrame {
	JPanel primaryPanel;

	public AnimationFrame() {
		primaryPanel = new AnimationJPanel(500, 500);
		primaryPanel.setBackground(Color.white);
		primaryPanel.setFocusable(true);
		primaryPanel.setSize(500, 500);
		setBackground(Color.gray);
		setSize(500, 500);
		setContentPane(primaryPanel);
		addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent event) {
				System.exit(0);
			}
		});

		setVisible(true);

	}

	public static void main(String[] args) {
		new AnimationFrame();
	}

}
